package 脚本;

import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

public class qwq{
    Robot ro=null;
    void 甜甜香气刷怪四连(){
        try {
            ro = new Robot();
        } catch (AWTException e) {
            e.printStackTrace();
        }
        for (int i = 0; i < 4; i++) {
            ro.keyPress(KeyEvent.VK_4);
            ro.keyRelease(KeyEvent.VK_4);
            ro.delay(14500);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(500);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(500);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(15000);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(1000);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(6000);
        }

    }
    void 甜甜香气刷闪四连(){
        try {
            ro = new Robot();
        } catch (AWTException e) {
            e.printStackTrace();
        }
        for (int i = 0; i < 4; i++) {
            ro.keyPress(KeyEvent.VK_4);
            ro.keyRelease(KeyEvent.VK_4);
            ro.mouseMove(488,591);
            ro.delay(14500);
            ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
            ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
            ro.delay(4000);
        }
        ro.mouseMove(769,458);
        ro.delay(200);
        ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
        ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
        ro.delay(200);
    }
    void 关都回医院(){
        ro.keyPress(KeyEvent.VK_7);
        ro.keyRelease(KeyEvent.VK_7);
        ro.delay(5000);
        for (int i = 0; i < 5; i++) {
            ro.keyPress(KeyEvent.VK_J);
            ro.delay(100);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(1000);
        }
    }
    void 丰源回医院(){
        ro.keyPress(KeyEvent.VK_7);
        ro.keyRelease(KeyEvent.VK_7);
        ro.delay(5000);
        for (int i = 0; i < 7; i++) {
            ro.keyPress(KeyEvent.VK_J);
            ro.delay(100);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(1000);
        }
    }
    void 神奥回医院(){
        ro.keyPress(KeyEvent.VK_7);
        ro.keyRelease(KeyEvent.VK_7);
        ro.delay(5000);
        for (int i = 0; i < 4; i++) {
            ro.keyPress(KeyEvent.VK_J);
            ro.delay(100);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(1000);
        }
        for (int i = 0; i < 2; i++) {
            ro.delay(2500);
            ro.keyPress(KeyEvent.VK_J);
            ro.delay(100);
            ro.keyRelease(KeyEvent.VK_J);
        }
    }
    void 合众回医院(){
        ro.keyPress(KeyEvent.VK_7);
        ro.keyRelease(KeyEvent.VK_7);
        ro.delay(6000);
        for (int i = 0; i < 4; i++) {
            ro.keyPress(KeyEvent.VK_J);
            ro.delay(100);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(1000);
        }
            ro.delay(5500);
            ro.keyPress(KeyEvent.VK_J);
            ro.delay(100);
            ro.keyRelease(KeyEvent.VK_J);
        ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
        ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
        ro.delay(1000);
        ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
        ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);

    }
    void 丰源出医院(){
        try {
            ro = new Robot();
        } catch (AWTException e) {
            e.printStackTrace();
        }
        ro.keyPress(KeyEvent.VK_S);
        ro.delay(2000);
        ro.keyRelease(KeyEvent.VK_S);
        ro.delay(1000);
    }
    void 关都出医院(){
        try {
            ro = new Robot();
        } catch (AWTException e) {
            e.printStackTrace();
        }
        ro.keyPress(KeyEvent.VK_S);
        ro.delay(2000);
        ro.keyRelease(KeyEvent.VK_S);
        ro.delay(1000);
    }
    void 神奥出医院(){
        try {
            ro = new Robot();
        } catch (AWTException e) {
            e.printStackTrace();
        }
        ro.keyPress(KeyEvent.VK_S);
        ro.delay(2300);
        ro.keyRelease(KeyEvent.VK_S);
        ro.delay(1200);
    }
    void 合众出医院(){
        try {
            ro = new Robot();
        } catch (AWTException e) {
            e.printStackTrace();
        }
        ro.keyPress(KeyEvent.VK_S);
        ro.delay(2300);
        ro.keyRelease(KeyEvent.VK_S);
        ro.delay(1000);
    }
    void 冲浪(){
        for (int i = 0; i < 4; i++) {
            ro.keyPress(KeyEvent.VK_6);
            ro.delay(100);
            ro.keyRelease(KeyEvent.VK_6);
            ro.delay(800);
        }
        ro.delay(1500);
    }
    void 钓鱼(){
        for (int i = 0; i < 480; i++) {
            ro.keyPress(KeyEvent.VK_2);
            ro.keyRelease(KeyEvent.VK_2);
            ro.delay(200);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(200);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(200);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(200);
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(200);
        }
        for (int i = 0; i < 125; i++) {
            ro.keyPress(KeyEvent.VK_J);
            ro.keyRelease(KeyEvent.VK_J);
            ro.delay(200);
        }
    }
}
